home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / STDLIB.PAK / COMPLEX.CPP < prev    next >
Text File  |  1997-05-06  |  275b  |  18 lines

  1.  #include <complex>
  2.  
  3.  using namespace std;
  4.  
  5.  int main ()
  6.  {
  7.    complex<double> a(1.2, 3.4);
  8.    complex<double> b(-9.8, -7.6);
  9.  
  10.    a += b;
  11.    a /= sin(b) * cos(a);
  12.    b *= log(a) + pow(b, a);
  13.  
  14.    cout << "a = " << a << ", b = " << b << endl;
  15.  
  16.    return 0;
  17.  }
  18.